package io.github.fb513.api.enums;

public enum RespMetaEnum {

    SUCCESS(200, "请求成功"),
    NOT_LOGIN(444, "未登陆或登陆过期"),


    PARAM_ERROR(1000, "参数错误"),
    TIMEOUT(1001, "网络繁忙，请稍后再试"),

    LOGIN_FAIL(2001, "登陆失败"),
    REGISTER_FAIL_REPEAT_USERNAME(2002, "用户名重复"),
    NO_USER(2003, "用户不存在"),
    REPEAT_PWD_ERROR(2004, "密码错误超过当日上限，请明日再试"),
    PWD_ERROR(2005, "账户或密码错误"),
    USER_FROZEN(2006, "用户被冻结"),
    PASSWORD_FAILED(2008, "密码错误"),

    FRIEND_ALREADY(3000, "已经是好友了"),
    FRIEND_DENY(3001, "不是好友"),
    ;

    private final int status;
    private final String msg;

    RespMetaEnum(int status, String msg) {
        this.status = status;
        this.msg = msg;
    }

    public int getStatus() {
        return status;
    }

    public String getMsg() {
        return msg;
    }
}
